﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter06
{
    public class Code04
    {
        public static void Begin()
        {
            CustomerName myCustomer;
            myCustomer.firstName = "John";
            myCustomer.lastName = "Franklin";
            Console.WriteLine("{0} {1}", myCustomer.firstName, myCustomer.lastName);
            Console.WriteLine(myCustomer.Name());
            Console.ReadLine();
        }
    }

    public struct CustomerName
    {
        public string firstName, lastName;

        public string Name()
        {
            return firstName + " " + lastName;
        }
    }
}
